import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import { Swipe, SwipeItem } from 'vant';
import { Stepper } from 'vant';



Vue.config.productionTip = false

// 0. Vue 主入口文件
console.log('Vue 主入口文件 - main')

// 1. 全局的CSS样式 
import '@/styles/index.scss'

// 2. 引入 vant ui
import Vant , {Lazyload } from 'vant';
import 'vant/lib/index.css';   

// 4. 混入  mixins  
import "@/utils/mixins"  

// 5. 全局组件定义
import "@/components"

// 6. 淘宝适配
import "lib-flexible" 

// 7. 全局的axios 
import {axios} from '@/api/request'
Vue.prototype.$axios = axios  // this.$axios = axios 

// 8. 全局的Ajax
import {ajax} from '@/api'
Vue.prototype.$ajax = ajax   // this.$ajax 


Vue.use(Vant);
Vue.use(Lazyload);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Stepper);


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
